-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Support DelayedMessageWrapper Deserialized #9561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support DelayedMessageWrapper Deserialized #9561
Conversation
e36bc1e
to
2768d25
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for spotting this and fixing!
Please, find my review.
And we are agreed, it could be incorporated into tomorrow's releases.
spring-integration-core/src/main/java/org/springframework/integration/handler/DelayHandler.java
Outdated
Show resolved
Hide resolved
...src/test/java/org/springframework/integration/redis/store/RedisChannelMessageStoreTests.java
Outdated
Show resolved
Hide resolved
...s/src/test/java/org/springframework/integration/redis/store/RedisMessageGroupStoreTests.java
Outdated
Show resolved
Hide resolved
...s/src/test/java/org/springframework/integration/redis/store/RedisMessageGroupStoreTests.java
Outdated
Show resolved
Hide resolved
2768d25
to
4325fc0
Compare
@artembilan Modified, request merge |
spring-integration-core/src/main/java/org/springframework/integration/handler/DelayHandler.java
Outdated
Show resolved
Hide resolved
…tore and JSON serialization
4325fc0
to
e16928d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I’ll run merge and back-port tomorrow before release .
Thank you!
Fixes: #9561 PR: #9561 The `DelayHandler.DelayedMessageWrapper` cannot be deserialized when using `RedisMessageStore` and JSON serialization: ``` org.springframework.data.redis.serializer.SerializationException: Could not read JSON:Cannot construct instance of `org.springframework.integration.handler.DelayHandler$DelayedMessageWrapper` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator) at [Source: UNKNOWN; byte offset: #UNKNOWN] at org.springframework.data.redis.serializer.GenericJackson2JsonRedisSerializer.deserialize(GenericJackson2JsonRedisSerializer.java:311) ``` * More code clean up and refactoring in the test (cherry picked from commit 73bb813)
Fixes: #9561 PR: #9561 The `DelayHandler.DelayedMessageWrapper` cannot be deserialized when using `RedisMessageStore` and JSON serialization: ``` org.springframework.data.redis.serializer.SerializationException: Could not read JSON:Cannot construct instance of `org.springframework.integration.handler.DelayHandler$DelayedMessageWrapper` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator) at [Source: UNKNOWN; byte offset: #UNKNOWN] at org.springframework.data.redis.serializer.GenericJackson2JsonRedisSerializer.deserialize(GenericJackson2JsonRedisSerializer.java:311) ``` * More code clean up and refactoring in the test (cherry picked from commit 73bb813)
@NaccOll , Thank you for contribution! One remark: |
DelayedMessageWrapper cannot be deserialized when using RedisMessageStore and JSON serialization